package com.yyfax.ph.base.adapter;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.yyfax.common.recycler.StatesAdapter;
import com.yyfax.common.recyclerview.BaseRecycleAdapter;
import com.yyfax.ph.base.YJPH;

/**
 * Created by xiongyufeng on 2017/3/16.
 * Copyright  2017 www.yylending.com. All Rights Reserved.
 */
public class BaseRetryRecyclerAdapter extends StatesAdapter {

	public BaseRetryRecyclerAdapter(@NonNull RecyclerView.Adapter wrapped, @Nullable View loadingView, @Nullable View emptyView, @Nullable View errorView) {
		super((BaseRecycleAdapter) wrapped, loadingView, emptyView, errorView, YJPH.getInstance());
	}

	public void setRetryClickListener(RetryClickListener listener) {
		mListener = listener;
	}
}
